#-*- coding: utf-8 -*-
from django import forms
from scm_auth.models import *

class AccountForm(forms.ModelForm):
    class Meta:
        model = ApiAccount
        fields = ('accountName', 'keyID', 'vCode')
    
    
# class ProfilForm(forms.ModelForm):
#     class Meta:
#         model = Profil 
        #fields = ('user','is_api_admin')
        
class AccountF(forms.Form):
    accountName = forms.CharField(label='Api account Name', required = True)
    keyID = forms.IntegerField(label='keyID', required = True)
    vCode = forms.CharField(label='vCode', required = True)

class ProfilF(forms.Form):
    username = forms.CharField(label='Username', required = True)
    firstname = forms.CharField(label='Firstname', required = True)
    lastname = forms.CharField(label='Lastname', required = True)
    email = forms.EmailField(label='Email', required = True)
    #emailCheck = forms.EmailField(label='Email-check', required = True)
    password = forms.PasswordInput()
    #passwordCheck = forms.PasswordInput(label='Password-check', required = True)
    accountName = forms.CharField(label='Api account Name', required = True)
    keyID = forms.IntegerField(label='keyID', required = True)
    vCode = forms.CharField(label='vCode', required = True)